let t = require;
let e = module;
let o = e.exports;
o.default = e.exports;

('use strict');
console.log('start'),
  Object.defineProperty(o, '__esModule', {
    value: !0
  }),
  (o.UmaSdkGainType = void 0);
var n = t('GameSDK'),
  i = t('Logger');
(function (t) {
  (t[(t.Free = 0)] = 'Free'),
    (t[(t.AdVideo = 1)] = 'AdVideo'),
    (t[(t.Diamond = 2)] = 'Diamond');
})(o.UmaSdkGainType || (o.UmaSdkGainType = {}));
var r = (function () {
  function t() {}
  return (
    (t.isSdkType = function () {
      return (
        n.default.sdkType == n.SdkType.WX ||
        n.default.sdkType == n.SdkType.Def ||
        n.default.sdkType == n.SdkType.NominoX_WX
      );
    }),
    (t.sendOpenId = function (e) {
      //   (n.default.sdkType != n.SdkType.WX &&
      //     n.default.sdkType != n.SdkType.NominoX_WX) ||
      //     (i.Logger.log('openid:' + e), wx.uma.setOpenid(e), t.startFrame());
    }),
    (t.trackEvent = function (t, e) {}),
    (t.startFrame = function () {
      this.isSdkType() && this.trackEvent('start_frame');
    }),
    (t.enterGame = function () {
      this.isSdkType() && this.trackEvent('enter_game');
    }),
    (t.guide = function (t) {
      this.isSdkType() &&
        this.trackEvent('guide_new', {
          gstep: t.toString()
        });
    }),
    (t.chapterPass = function (t) {
      this.isSdkType() &&
        this.trackEvent('chapter_pass', {
          chapter_id: t.toString()
        });
    }),
    (t.chapterReward = function (t) {
      this.isSdkType() &&
        this.trackEvent('chapter_award', {
          use_type: t.toString()
        });
    }),
    (t.roundWin = function (t, e) {
      this.isSdkType() &&
        this.trackEvent('round_win', {
          round: t + '-' + e
        });
    }),
    (t.roundLose = function (t, e) {
      this.isSdkType() &&
        this.trackEvent('round_lose', {
          round: t + '-' + e
        });
    }),
    (t.civilizationUpgrade = function (t) {
      this.isSdkType() &&
        this.trackEvent('civilization_level', {
          clv: t.toString()
        });
    }),
    (t.scienceUpgrade = function (t, e) {
      this.isSdkType() &&
        this.trackEvent('science', {
          slv: t + '-' + e
        });
    }),
    (t.cardUpgrade = function (t, e) {
      this.isSdkType() &&
        this.trackEvent('card', {
          clv: t + '-' + e
        });
    }),
    (t.military = function (t) {
      this.isSdkType() &&
        this.trackEvent('military_new', {
          military_id: t.toString()
        });
    }),
    (t.storeRefresh = function (t) {
      this.isSdkType() &&
        this.trackEvent('refresh_shop', {
          use_type: t.toString()
        });
    }),
    (t.storeBuyItem = function (t) {
      this.isSdkType() &&
        this.trackEvent('buy_shop', {
          shop_id: t.toString()
        });
    }),
    (t.storeBuyBox = function (t, e) {
      if (this.isSdkType()) {
        var o = 'box_lottery' + t;
        this.trackEvent(o, {
          use_type: e.toString()
        });
      }
    }),
    (t.buyVit = function (t) {
      this.isSdkType() &&
        this.trackEvent('buy_vit', {
          use_type: t.toString()
        });
    }),
    (t.videoAdBuyMoney = function () {
      this.isSdkType() && this.trackEvent('step_refresh');
    }),
    (t.videoAdBuyItem = function () {
      this.isSdkType() && this.trackEvent('video_item');
    }),
    t
  );
})();
(o.default = r), console.log('end');
module.exports = e.exports;
